Plug leak: When reordering the info in the list the old node is removed
authorXan Lopez <xan.lopez@nokia.com>
Sat, 15 Dec 2007 11:15:19 +0000 (11:15 +0000)
committerXan Lopez <xan@src.gnome.org>
Sat, 15 Dec 2007 11:15:19 +0000 (11:15 +0000)
2007-12-15  Xan Lopez  <xan.lopez@nokia.com>

* gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_layout_reorder):

Plug leak: When reordering the info in the list the old node is
removed but not freed. (#503569)

svn path=/trunk/; revision=19184

ChangeLog
gtk/gtktreeviewcolumn.c

index abe3b4159407cbacfd36e56270f735d2d990038f..f0bf8f95c24afd83af7a72b0a3c146d8cf10a5fc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2007-12-15  Xan Lopez  <xan.lopez@nokia.com>
+
+       * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_layout_reorder):
+
+       Plug leak: When reordering the info in the list the old node is
+       removed but not freed. (#503569)
+
 2007-12-15  Sebastian Dröge  <slomo@circular-chaos.org>
 
        * gdk/directfb/gdkcursor-directfb.c: (gdk_cursor_new_for_display):
index d3824c830c23d7eef498de0597a6cd51e091ee06..f425e76b16815e238e95937cdbafff1e0bba4304 100644 (file)
@@ -762,7 +762,7 @@ gtk_tree_view_column_cell_layout_reorder (GtkCellLayout   *cell_layout,
 
   g_return_if_fail (link != NULL);
 
-  column->cell_list = g_list_remove_link (column->cell_list, link);
+  column->cell_list = g_list_delete_link (column->cell_list, link);
   column->cell_list = g_list_insert (column->cell_list, info, position);
 
   if (column->tree_view)